import Vue from 'vue'
import App from './App.vue'
import * as echarts from 'echarts'
import router from './router'

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import { parseTime } from "@/utils/common";

import VScaleScreen from 'v-scale-screen' // 自适应组件

import PageTitle from "@/components/PageTitle/index" // 标题组件
import ModuleTitle from "@/components/ModuleTitle/index" // 模块标题组件
import GTable from "@/components/Table/index" // 表格组件
import GSelect from "@/components/Select/index" // 下拉选择器组件
import GDatePicker from "@/components/DatePicker/index" // 日期选择器组件

import '@/assets/font/DS-DIGIB.css';
import '@/assets/font/SHUHETI-bold.css';
import '@/assets/font/FontquanXinYiGuanHeiTi.css'

Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
Vue.prototype.parseTime = parseTime

Vue.component('PageTitle', PageTitle)
Vue.component('ModuleTitle', ModuleTitle)
Vue.component('GTable', GTable)
Vue.component('GSelect', GSelect)
Vue.component('GDatePicker', GDatePicker)

Vue.use(Element)
Vue.use(VScaleScreen)


new Vue({
  router,
  mounted() {
    document.title = process.env.VUE_APP_TITLE || '资产管理数据驾驶舱';
  },
  render: h => h(App),
}).$mount('#app')
